/*
 * 统计输入数据中的字符数、tab数、换行数
 */

#include <stdio.h>

int main() {
    int c, nc, nt, nl;

    nc = nt = nl = 0;
    while ((c = getchar()) != EOF) {
        nc++;
        if (c == '\t') nt++;
        if (c == '\n') nl++;
    }

    printf("character: %d tabs: %d lines: %d\n", nc, nt, nl);

    return 0;
}
